package org.onosproject.ngsdn.tutorial.cli;

import org.apache.karaf.shell.api.action.Command;
import org.apache.karaf.shell.api.action.lifecycle.Service;
import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.ngsdn.tutorial.RouterComponent;

@Service
@Command(scope = "onos", name = "currentmodal",
        description = "Change modal")
public class CurrentModalCommand extends AbstractShellCommand {
    @Override
    protected void doExecute() {
        RouterComponent app = get(RouterComponent.class);
        print("Current Modal is %s", app.getCurrentModal());
    }
}
